package com.ruoyi.system.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

import java.util.Date;

/**
 * 人员对象 t_person
 * 
 * @author ruoyi
 * @date 2022-04-25
 */
public class TPerson extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private String id;

    /** 信士姓名 */
    @Excel(name = "信士姓名")
    private String personName;

    /** 信士地址 */
    @Excel(name = "信士地址")
    private String personAddress;

    /** 信士手机号码 */
    @Excel(name = "信士手机号码")
    private String personPhone;

    /** 性别 */
    @Excel(name = "性别")
    private Long sex;


    /** 出生日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "出生日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date birthday;


    public void setBirthday(Date birthday) {
        this.birthday = birthday;
    }

    public Date getBirthday() {
        return birthday;
    }

    public void setId(String id)
    {
        this.id = id;
    }

    public String getId() 
    {
        return id;
    }
    public void setPersonName(String personName) 
    {
        this.personName = personName;
    }

    public String getPersonName() 
    {
        return personName;
    }
    public void setPersonAddress(String personAddress) 
    {
        this.personAddress = personAddress;
    }

    public String getPersonAddress() 
    {
        return personAddress;
    }
    public void setPersonPhone(String personPhone) 
    {
        this.personPhone = personPhone;
    }

    public String getPersonPhone() 
    {
        return personPhone;
    }
    public void setSex(Long sex) 
    {
        this.sex = sex;
    }

    public Long getSex() 
    {
        return sex;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("personName", getPersonName())
            .append("personAddress", getPersonAddress())
            .append("personPhone", getPersonPhone())
            .append("updateTime", getUpdateTime())
            .append("createTime", getCreateTime())
            .append("sex", getSex())
            .toString();
    }
}
